Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update WhitelistRangeMiddleware.php #10

Merged
merged 1 commit into from
Jan 8, 2025

Conversation

matthewmnewman
Copy link
Contributor

When the firewall is disabled by setting FIREWALL_ENABLED=false and the WhitelistRangeMiddleware is in use, access to the panel is blocked. This update adds a check to ensure the firewall is enabled before applying restrictions. Note that this only impacts the panel if the middleware is applied in the Filament Panel Provider, which is a valid use case.

Check if the base package firewall is enabled or disabled.  If it is disabled then skip returns true.
@lam0819 lam0819 merged commit c051ff5 into solutionforest:2.x Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants